<?php


namespace App\Tools;


use Illuminate\Support\Facades\Log;

class RedisHouseList
{
            public $redis;
            public function __construct()
            {
                $this->redis=RedisTools::getInstance()->connectRedis();
            }
            public function HashList($param){
//                if($this->redis->hGet("RentAndPurchase",$param['id'])){
//                   $this->redis->hDel("RentAndPurchase",$param['id']);
//                }
               $redis= $this->redis->hSet('RentAndPurchase',$param['id'],json_encode($param,256));
                Log::info($redis);
            }
}
